package com.woniu.goodsservice.dao;

import com.woniu.goodsservice.dto.AuctionDTO;
import com.woniu.goodsservice.dto.AuctionDataDTO;
import com.woniu.goodsservice.entity.Auction;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface AuctionDao {
    Auction queryById(Integer id);

    List<Auction> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit);
    
    List<Auction> findAll();

    List<Auction> queryAll(Auction auction);

    int insert(Auction auction);

    int update(Auction auction);

    int deleteById(Integer id);

    List<Auction> selectByPage(@Param(value = "currentPage") Integer currentPage,@Param(value = "pageSize") Integer pageSize);

    List<AuctionDataDTO> selectAuctionDataListByPage(Integer currentPage, Integer pageSize);
}